<template>
  <div>
      <el-table :data="contractAttachmentList">
        <el-table-column label="附件名称" prop="attachmentName" show-overflow-tooltip></el-table-column>
        <el-table-column label="附件类型" prop="attachmentType"></el-table-column>
        <el-table-column label="附件路径" prop="attachmentUrl"></el-table-column>
        <el-table-column label="备注" prop="remark"></el-table-column>
      </el-table>
  </div>
</template>

<script>
import Mixins from '../mixins'
export default {
  mixins: [Mixins],
  props: {
    canModify: { type: Boolean, default: false },
    param: {type: Object,
      default: () => {
        return {}
      }}
  },
  components: {},
  data () {
    return {
      contractAttachmentList: []
    }
  },
  mounted () {
    this.getContractAttachmentList(this.param.contractCode)
  },
  methods: {
    getContractAttachmentList (contractCode) {
      this.requestOption('getContractAttachmentList', contractCode, res => {
        this.contractAttachmentList = res.data || []
      })
    }
  }
}
</script>

<style lang="scss" scoped>
</style>
